/*! @sentry/browser 9.12.0 (4eb78e5) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){t=window.Sentry||{};const n=globalThis,e="9.12.0";function r(){return o(n),n}function o(t){const n=t.__SENTRY__=t.__SENTRY__||{};return n.version=n.version||e,n[e]=n[e]||{}}function i(t,r,o=n){const i=o.__SENTRY__=o.__SENTRY__||{},s=i[e]=i[e]||{};return s[t]||(s[t]=r())}const s=["debug","info","warn","error","log","assert","trace"],c={};function u(t){if(!("console"in n))return t();const e=n.console,r={},o=Object.keys(c);o.forEach((t=>{const n=c[t];r[t]=e[t],e[t]=n}));try{return t()}finally{o.forEach((t=>{e[t]=r[t]}))}}const a=i("logger",(function(){let t=!1;const n={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return s.forEach((t=>{n[t]=()=>{}})),n})),f=50,l="?",d=/\(error: (.*)\)/,h=/captureMessage|captureException/;function p(...t){const n=t.sort(((t,n)=>t[0]-n[0])).map((t=>t[1]));return(t,e=0,r=0)=>{const o=[],i=t.split("\n");for(let t=e;t1024)continue;const s=d.test(e)?e.replace(d,"$1"):e;if(!s.match(/\S*Error: /)){for(const t of n){const n=t(s);if(n){o.push(n);break}}if(o.length>=f+r)break}}return function(t){if(!t.length)return[];const n=Array.from(t);/sentryWrapped/.test(m(n).function||"")&&n.pop();n.reverse(),h.test(m(n).function||"")&&(n.pop(),h.test(m(n).function||"")&&n.pop());return n.slice(0,f).map((t=>({...t,filename:t.filename||m(n).filename,function:t.function||l})))}(o.slice(r))}}function m(t){return t[t.length-1]||{}}const y="";function g(t){try{return t&&"function"==typeof t&&t.name||y}catch(t){return y}}function v(t){const n=t.exception;if(n){const t=[];try{return n.values.forEach((n=>{n.stacktrace.frames&&t.push(...n.stacktrace.frames)})),t}catch(t){return}}}const b={},_={};function E(t,n){b[t]=b[t]||[],b[t].push(n)}function w(t,n){if(!_[t]){_[t]=!0;try{n()}catch(t){}}}function S(t,n){const e=t&&b[t];if(e)for(const t of e)try{t(n)}catch(t){}}let $=null;function x(){$=n.onerror,n.onerror=function(t,n,e,r,o){return S("error",{column:r,error:o,line:e,msg:t,url:n}),!!$&&$.apply(this,arguments)},n.onerror.__SENTRY_INSTRUMENTED__=!0}let k=null;function I(){k=n.onunhandledrejection,n.onunhandledrejection=function(t){return S("unhandledrejection",t),!k||k.apply(this,arguments)},n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const j=1e3;function T(){return Date.now()/j}const O=function(){const{performance:t}=n;if(!t?.now)return T;const e=Date.now()-t.now(),r=null==t.timeOrigin?e:t.timeOrigin;return()=>(r+t.now())/j}(),R=Object.prototype.toString;function C(t){switch(R.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return q(t,Error)}}function A(t,n){return R.call(t)===`[object ${n}]`}function D(t){return A(t,"ErrorEvent")}function M(t){return A(t,"DOMError")}function N(t){return A(t,"String")}function P(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function L(t){return null===t||P(t)||"object"!=typeof t&&"function"!=typeof t}function U(t){return A(t,"Object")}function F(t){return"undefined"!=typeof Event&&q(t,Event)}function B(t){return Boolean(t?.then&&"function"==typeof t.then)}function q(t,n){try{return t instanceof n}catch(t){return!1}}function H(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t.t)}const W=n,z=80;function G(t,n={}){if(!t)return"";try{let e=t;const r=5,o=[];let i=0,s=0;const c=" > ",u=c.length;let a;const f=Array.isArray(n)?n:n.keyAttrs,l=!Array.isArray(n)&&n.maxStringLength||z;for(;e&&i++1&&s+o.length*u+a.length>=l));)o.push(a),s+=a.length,e=e.parentNode;return o.reverse().join(c)}catch(t){return""}}function J(t,n){const e=t,r=[];if(!e?.tagName)return"";if(W.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());const o=n?.length?n.filter((t=>e.getAttribute(t))).map((t=>[t,e.getAttribute(t)])):null;if(o?.length)o.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else{e.id&&r.push(`#${e.id}`);const t=e.className;if(t&&N(t)){const n=t.split(/\s+/);for(const t of n)r.push(`.${t}`)}}const i=["aria-label","type","name","title","alt"];for(const t of i){const n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}function X(){try{return W.document.location.href}catch(t){return""}}function Y(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function K(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;nV(t,n,e)))}function Q(t,n,e){if(!(n in t))return;const r=t[n];if("function"!=typeof r)return;const o=e(r);"function"==typeof o&&nt(o,r);try{t[n]=o}catch{}}function tt(t,n,e){try{Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}catch(t){}}function nt(t,n){try{const e=n.prototype||{};t.prototype=n.prototype=e,tt(t,"__sentry_original__",n)}catch(t){}}function et(t){return t.__sentry_original__}function rt(t){if(C(t))return{message:t.message,name:t.name,stack:t.stack,...it(t)};if(F(t)){const n={type:t.type,target:ot(t.target),currentTarget:ot(t.currentTarget),...it(t)};return"undefined"!=typeof CustomEvent&&q(t,CustomEvent)&&(n.detail=t.detail),n}return t}function ot(t){try{return n=t,"undefined"!=typeof Element&&q(n,Element)?G(t):Object.prototype.toString.call(t)}catch(t){return""}var n}function it(t){if("object"==typeof t&&null!==t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}return{}}function st(t=function(){const t=n;return t.crypto||t.msCrypto}()){let e=()=>16*Math.random();try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"");t?.getRandomValues&&(e=()=>{const n=new Uint8Array(1);return t.getRandomValues(n),n[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&e())>>t/4).toString(16)))}function ct(t){return t.exception?.values?.[0]}function ut(t){const{message:n,event_id:e}=t;if(n)return n;const r=ct(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"":e||""}function at(t,n,e){const r=t.exception=t.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=n||""),i.type||(i.type="Error")}function ft(t,n){const e=ct(t);if(!e)return;const r=e.mechanism;if(e.mechanism={type:"generic",handled:!0,...r,...n},n&&"data"in n){const t={...r?.data,...n.data};e.mechanism.data=t}}function lt(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{tt(t,"__sentry_captured__",!0)}catch(t){}return!1}var dt;function ht(t){return new mt((n=>{n(t)}))}function pt(t){return new mt(((n,e)=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(dt||(dt={}));class mt{constructor(t){this.o=dt.PENDING,this.i=[],this.u(t)}then(t,n){return new mt(((e,r)=>{this.i.push([!1,n=>{if(t)try{e(t(n))}catch(t){r(t)}else e(n)},t=>{if(n)try{e(n(t))}catch(t){r(t)}else r(t)}]),this.l()}))}catch(t){return this.then((t=>t),t)}finally(t){return new mt(((n,e)=>{let r,o;return this.then((n=>{o=!1,r=n,t&&t()}),(n=>{o=!0,r=n,t&&t()})).then((()=>{o?e(r):n(r)}))}))}l(){if(this.o===dt.PENDING)return;const t=this.i.slice();this.i=[],t.forEach((t=>{t[0]||(this.o===dt.RESOLVED&&t[1](this.h),this.o===dt.REJECTED&&t[2](this.h),t[0]=!0)}))}u(t){const n=(t,n)=>{this.o===dt.PENDING&&(B(n)?n.then(e,r):(this.o=t,this.h=n,this.l()))},e=t=>{n(dt.RESOLVED,t)},r=t=>{n(dt.REJECTED,t)};try{t(e,r)}catch(t){r(t)}}}function yt(t){const n=O(),e={sid:st(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}(e)};return t&>(e,t),e}function gt(t,n={}){if(n.user&&(!t.ipAddress&&n.user.ip_address&&(t.ipAddress=n.user.ip_address),t.did||n.did||(t.did=n.user.id||n.user.email||n.user.username)),t.timestamp=n.timestamp||O(),n.abnormal_mechanism&&(t.abnormal_mechanism=n.abnormal_mechanism),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:st()),void 0!==n.init&&(t.init=n.init),!t.did&&n.did&&(t.did=`${n.did}`),"number"==typeof n.started&&(t.started=n.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof n.duration)t.duration=n.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}n.release&&(t.release=n.release),n.environment&&(t.environment=n.environment),!t.ipAddress&&n.ipAddress&&(t.ipAddress=n.ipAddress),!t.userAgent&&n.userAgent&&(t.userAgent=n.userAgent),"number"==typeof n.errors&&(t.errors=n.errors),n.status&&(t.status=n.status)}function vt(){return st()}function bt(){return st().substring(16)}function _t(t,n,e=2){if(!n||"object"!=typeof n||e<=0)return n;if(t&&0===Object.keys(n).length)return t;const r={...t};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=_t(r[t],n[t],e-1));return r}const Et="_sentrySpan";function wt(t,n){n?tt(t,Et,n):delete t[Et]}function St(t){return t[Et]}class $t{constructor(){this.p=!1,this.m=[],this.v=[],this._=[],this.S=[],this.k={},this.I={},this.j={},this.T={},this.O={},this.R={traceId:vt(),sampleRand:Math.random()}}clone(){const t=new $t;return t._=[...this._],t.I={...this.I},t.j={...this.j},t.T={...this.T},this.T.flags&&(t.T.flags={values:[...this.T.flags.values]}),t.k=this.k,t.C=this.C,t.A=this.A,t.D=this.D,t.M=this.M,t.v=[...this.v],t.S=[...this.S],t.O={...this.O},t.R={...this.R},t.N=this.N,t.P=this.P,wt(t,St(this)),t}setClient(t){this.N=t}setLastEventId(t){this.P=t}getClient(){return this.N}lastEventId(){return this.P}addScopeListener(t){this.m.push(t)}addEventProcessor(t){return this.v.push(t),this}setUser(t){return this.k=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this.A&>(this.A,{user:t}),this.L(),this}getUser(){return this.k}setTags(t){return this.I={...this.I,...t},this.L(),this}setTag(t,n){return this.I={...this.I,[t]:n},this.L(),this}setExtras(t){return this.j={...this.j,...t},this.L(),this}setExtra(t,n){return this.j={...this.j,[t]:n},this.L(),this}setFingerprint(t){return this.M=t,this.L(),this}setLevel(t){return this.C=t,this.L(),this}setTransactionName(t){return this.D=t,this.L(),this}setContext(t,n){return null===n?delete this.T[t]:this.T[t]=n,this.L(),this}setSession(t){return t?this.A=t:delete this.A,this.L(),this}getSession(){return this.A}update(t){if(!t)return this;const n="function"==typeof t?t(this):t,e=n instanceof $t?n.getScopeData():U(n)?t:void 0,{tags:r,extra:o,user:i,contexts:s,level:c,fingerprint:u=[],propagationContext:a}=e||{};return this.I={...this.I,...r},this.j={...this.j,...o},this.T={...this.T,...s},i&&Object.keys(i).length&&(this.k=i),c&&(this.C=c),u.length&&(this.M=u),a&&(this.R=a),this}clear(){return this._=[],this.I={},this.j={},this.k={},this.T={},this.C=void 0,this.D=void 0,this.M=void 0,this.A=void 0,wt(this,void 0),this.S=[],this.setPropagationContext({traceId:vt(),sampleRand:Math.random()}),this.L(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:T(),...t,message:t.message?Y(t.message,2048):t.message};return this._.push(r),this._.length>e&&(this._=this._.slice(-e),this.N?.recordDroppedEvent("buffer_overflow","log_item")),this.L(),this}getLastBreadcrumb(){return this._[this._.length-1]}clearBreadcrumbs(){return this._=[],this.L(),this}addAttachment(t){return this.S.push(t),this}clearAttachments(){return this.S=[],this}getScopeData(){return{breadcrumbs:this._,attachments:this.S,contexts:this.T,tags:this.I,extra:this.j,user:this.k,level:this.C,fingerprint:this.M||[],eventProcessors:this.v,propagationContext:this.R,sdkProcessingMetadata:this.O,transactionName:this.D,span:St(this)}}setSDKProcessingMetadata(t){return this.O=_t(this.O,t,2),this}setPropagationContext(t){return this.R=t,this}getPropagationContext(){return this.R}captureException(t,n){const e=n?.event_id||st();if(!this.N)return a.warn("No client configured on scope - will not capture exception!"),e;const r=new Error("Sentry syntheticException");return this.N.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},this),e}captureMessage(t,n,e){const r=e?.event_id||st();if(!this.N)return a.warn("No client configured on scope - will not capture message!"),r;const o=new Error(t);return this.N.captureMessage(t,n,{originalException:t,syntheticException:o,...e,event_id:r},this),r}captureEvent(t,n){const e=n?.event_id||st();return this.N?(this.N.captureEvent(t,{...n,event_id:e},this),e):(a.warn("No client configured on scope - will not capture event!"),e)}L(){this.p||(this.p=!0,this.m.forEach((t=>{t(this)})),this.p=!1)}}class xt{constructor(t,n){let e,r;e=t||new $t,r=n||new $t,this.U=[{scope:e}],this.F=r}withScope(t){const n=this.B();let e;try{e=t(n)}catch(t){throw this.q(),t}return B(e)?e.then((t=>(this.q(),t)),(t=>{throw this.q(),t})):(this.q(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.F}getStackTop(){return this.U[this.U.length-1]}B(){const t=this.getScope().clone();return this.U.push({client:this.getClient(),scope:t}),t}q(){return!(this.U.length<=1)&&!!this.U.pop()}}function kt(){const t=o(r());return t.stack=t.stack||new xt(i("defaultCurrentScope",(()=>new $t)),i("defaultIsolationScope",(()=>new $t)))}function It(t){return kt().withScope(t)}function jt(t,n){const e=kt();return e.withScope((()=>(e.getStackTop().scope=t,n(t))))}function Tt(t){return kt().withScope((()=>t(kt().getIsolationScope())))}function Ot(t){const n=o(t);return n.acs?n.acs:{withIsolationScope:Tt,withScope:It,withSetScope:jt,withSetIsolationScope:(t,n)=>Tt(n),getCurrentScope:()=>kt().getScope(),getIsolationScope:()=>kt().getIsolationScope()}}function Rt(){return Ot(r()).getCurrentScope()}function Ct(){return Ot(r()).getIsolationScope()}function At(){return i("globalScope",(()=>new $t))}function Dt(...t){const n=Ot(r());if(2===t.length){const[e,r]=t;return e?n.withSetScope(e,r):n.withScope(r)}return n.withScope(t[0])}function Mt(){return Rt().getClient()}function Nt(t){const n=t.getPropagationContext(),{traceId:e,parentSpanId:r,propagationSpanId:o}=n,i={trace_id:e,span_id:o||bt()};return r&&(i.parent_span_id=r),i}const Pt="sentry.source",Lt="sentry.sample_rate",Ut="sentry.op",Ft="sentry.origin",Bt="sentry.profile_id",qt="sentry.exclusive_time",Ht=0,Wt=1,zt="_sentryScope",Gt="_sentryIsolationScope";function Jt(t){return{scope:t[zt],isolationScope:t[Gt]}}function Xt(t){if("boolean"==typeof t)return Number(t);const n="string"==typeof t?parseFloat(t):t;return"number"!=typeof n||isNaN(n)||n<0||n>1?void 0:n}const Yt="sentry-",Kt=/^sentry-/,Vt=8192;function Zt(t){const n=function(t){if(!t||!N(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce(((t,n)=>{const e=tn(n);return Object.entries(e).forEach((([n,e])=>{t[n]=e})),t}),{});return tn(t)}(t);if(!n)return;const e=Object.entries(n).reduce(((t,[n,e])=>{if(n.match(Kt)){t[n.slice(Yt.length)]=e}return t}),{});return Object.keys(e).length>0?e:void 0}function Qt(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce(((t,[n,e],r)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(e)}`,i=0===r?o:`${t},${o}`;return i.length>Vt?t:i}),"")}(Object.entries(t).reduce(((t,[n,e])=>(e&&(t[`${Yt}${n}`]=e),t)),{}))}function tn(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[n,e])=>(n&&e&&(t[n]=e),t)),{})}const nn=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function en(t,n){const e=function(t){if(!t)return;const n=t.match(nn);if(!n)return;let e;return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=Zt(n);if(!e?.traceId)return{traceId:vt(),sampleRand:Math.random()};const o=function(t,n){const e=Xt(n?.sample_rand);if(void 0!==e)return e;const r=Xt(n?.sample_rate);return r&&void 0!==t?.parentSampled?t.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}(e,r);r&&(r.sample_rand=o.toString());const{traceId:i,parentSpanId:s,parentSampled:c}=e;return{traceId:i,parentSpanId:s,sampled:c,dsc:r||{},sampleRand:o}}const rn=1;let on=!1;function sn(t){const{spanId:n,traceId:e,isRemote:r}=t.spanContext(),o=r?n:fn(t).parent_span_id,i=Jt(t).scope;return{parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||bt():n,trace_id:e}}function cn(t){return t&&t.length>0?t.map((({context:{spanId:t,traceId:n,traceFlags:e,...r},attributes:o})=>({span_id:t,trace_id:n,sampled:e===rn,attributes:o,...r}))):void 0}function un(t){return"number"==typeof t?an(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?an(t.getTime()):O()}function an(t){return t>9999999999?t/1e3:t}function fn(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:n,traceId:e}=t.spanContext();if(function(t){const n=t;return!!(n.attributes&&n.startTime&&n.name&&n.endTime&&n.status)}(t)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:c,status:u,links:a}=t;return{span_id:n,trace_id:e,data:r,description:i,parent_span_id:c,start_timestamp:un(o),timestamp:un(s)||void 0,status:dn(u),op:r[Ut],origin:r[Ft],links:cn(a)}}return{span_id:n,trace_id:e,start_timestamp:0,data:{}}}function ln(t){const{traceFlags:n}=t.spanContext();return n===rn}function dn(t){if(t&&t.code!==Ht)return t.code===Wt?"ok":t.message||"unknown_error"}const hn="_sentryRootSpan";function pn(t){return t[hn]||t}function mn(){on||(u((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")})),on=!0)}const yn="production",gn="_frozenDsc";function vn(t,n){const e=n.getOptions(),{publicKey:r}=n.getDsn()||{},o={environment:e.environment||yn,release:e.release,public_key:r,trace_id:t};return n.emit("createDsc",o),o}function bn(t){const n=Mt();if(!n)return{};const e=pn(t),r=fn(e),o=r.data,i=e.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[Lt];function c(t){return"number"!=typeof s&&"string"!=typeof s||(t.sample_rate=`${s}`),t}const u=e[gn];if(u)return c(u);const a=i?.get("sentry.dsc"),f=a&&Zt(a);if(f)return c(f);const l=vn(t.spanContext().traceId,n),d=o[Pt],h=r.description;return"url"!==d&&h&&(l.transaction=h),function(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=t||Mt()?.getOptions();return!(!n||null==n.tracesSampleRate&&!n.tracesSampler)}()&&(l.sampled=String(ln(e)),l.sample_rand=i?.get("sentry.sample_rand")??Jt(e).scope?.getPropagationContext().sampleRand.toString()),c(l),n.emit("createDsc",l,e),l}const _n=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function En(t,n=!1){const{host:e,path:r,pass:o,port:i,projectId:s,protocol:c,publicKey:u}=t;return`${c}://${u}${n&&o?`:${o}`:""}@${e}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function wn(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Sn(t){const n="string"==typeof t?function(t){const n=_n.exec(t);if(!n)return void u((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[e,r,o="",i="",s="",c=""]=n.slice(1);let a="",f=c;const l=f.split("/");if(l.length>1&&(a=l.slice(0,-1).join("/"),f=l.pop()),f){const t=f.match(/^\d+/);t&&(f=t[0])}return wn({host:i,pass:o,path:a,projectId:f,port:s,protocol:e,publicKey:r})}(t):wn(t);if(n)return n}function $n(t,n=100,e=1/0){try{return kn("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function xn(t,n=3,e=102400){const r=$n(t,n);return o=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>e?xn(t,n-1,e):r;var o}function kn(t,n,e=1/0,r=1/0,o=function(){const t=new WeakSet;function n(n){return!!t.has(n)||(t.add(n),!1)}function e(n){t.delete(n)}return[n,e]}()){const[i,s]=o;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;const c=function(t,n){try{if("domain"===t&&n&&"object"==typeof n&&n.H)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&n===global)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(H(n))return"[VueViewModel]";if(U(e=n)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e)return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${g(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const r=function(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var e}(t,n);if(!c.startsWith("[object "))return c;if(n.__sentry_skip_normalization__)return n;const u="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:e;if(0===u)return c.replace("object ","");if(i(n))return"[Circular ~]";const a=n;if(a&&"function"==typeof a.toJSON)try{return kn("",a.toJSON(),u-1,r,o)}catch(t){}const f=Array.isArray(n)?[]:{};let l=0;const d=rt(n);for(const t in d){if(!Object.prototype.hasOwnProperty.call(d,t))continue;if(l>=r){f[t]="[MaxProperties ~]";break}const n=d[t];f[t]=kn(t,n,u-1,r,o),l++}return s(n),f}function In(t,n=[]){return[t,n]}function jn(t,n){const[e,r]=t;return[e,[...r,n]]}function Tn(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function On(t){const e=o(n);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function Rn(t){const[n,e]=t;let r=JSON.stringify(n);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[On(r),t]:r.push("string"==typeof t?On(t):t)}for(const t of e){const[n,e]=t;if(o(`\n${JSON.stringify(n)}\n`),"string"==typeof e||e instanceof Uint8Array)o(e);else{let t;try{t=JSON.stringify(e)}catch(n){t=JSON.stringify($n(e))}o(t)}}return"string"==typeof r?r:function(t){const n=t.reduce(((t,n)=>t+n.length),0),e=new Uint8Array(n);let r=0;for(const n of t)e.set(n,r),r+=n.length;return e}(r)}function Cn(t){const n="string"==typeof t.data?On(t.data):t.data;return[{type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},n]}const An={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",otel_log:"log_item"};function Dn(t){return An[t]}function Mn(t){if(!t?.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function Nn(t,n,e,r){const o=Mn(e),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,n){n&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=[...t.sdk.integrations||[],...n.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...n.packages||[]])}(t,e?.sdk);const s=function(t,n,e,r){const o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!e&&r&&{dsn:En(r)},...o&&{trace:o}}}(t,o,r,n);delete t.sdkProcessingMetadata;return In(s,[[{type:i},t]])}function Pn(t,n,e,r=0){return new mt(((o,i)=>{const s=t[r];if(null===n||"function"!=typeof s)o(n);else{const c=s({...n},e);B(c)?c.then((n=>Pn(t,n,e,r+1).then(o))).then(null,i):Pn(t,c,e,r+1).then(o).then(null,i)}}))}let Ln,Un,Fn;function Bn(t,n){const{fingerprint:e,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=n;!function(t,n){const{extra:e,tags:r,user:o,contexts:i,level:s,transactionName:c}=n;Object.keys(e).length&&(t.extra={...e,...t.extra});Object.keys(r).length&&(t.tags={...r,...t.tags});Object.keys(o).length&&(t.user={...o,...t.user});Object.keys(i).length&&(t.contexts={...i,...t.contexts});s&&(t.level=s);c&&"transaction"!==t.type&&(t.transaction=c)}(t,n),r&&function(t,n){t.contexts={trace:sn(n),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:bn(n),...t.sdkProcessingMetadata};const e=pn(n),r=fn(e).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],n&&(t.fingerprint=t.fingerprint.concat(n));t.fingerprint.length||delete t.fingerprint}(t,e),function(t,n){const e=[...t.breadcrumbs||[],...n];t.breadcrumbs=e.length?e:void 0}(t,o),function(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}(t,i)}function qn(t,n){const{extra:e,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:a,eventProcessors:f,attachments:l,propagationContext:d,transactionName:h,span:p}=n;Hn(t,"extra",e),Hn(t,"tags",r),Hn(t,"user",o),Hn(t,"contexts",i),t.sdkProcessingMetadata=_t(t.sdkProcessingMetadata,c,2),s&&(t.level=s),h&&(t.transactionName=h),p&&(t.span=p),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),a.length&&(t.fingerprint=[...t.fingerprint,...a]),f.length&&(t.eventProcessors=[...t.eventProcessors,...f]),l.length&&(t.attachments=[...t.attachments,...l]),t.propagationContext={...t.propagationContext,...d}}function Hn(t,n,e){t[n]=_t(t[n],e,1)}function Wn(t,e,r,o,i,s){const{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=t,a={...e,event_id:e.event_id||r.event_id||st(),timestamp:e.timestamp||T()},f=r.integrations||t.integrations.map((t=>t.name));!function(t,n){const{environment:e,release:r,dist:o,maxValueLength:i=250}=n;t.environment=t.environment||e||yn,!t.release&&r&&(t.release=r);!t.dist&&o&&(t.dist=o);const s=t.request;s?.url&&(s.url=Y(s.url,i))}(a,t),function(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}(a,f),i&&i.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const r=function(t){const e=n._sentryDebugIds;if(!e)return{};const r=Object.keys(e);return Fn&&r.length===Un||(Un=r.length,Fn=r.reduce(((n,r)=>{Ln||(Ln={});const o=Ln[r];if(o)n[o[0]]=o[1];else{const o=t(r);for(let t=o.length-1;t>=0;t--){const i=o[t],s=i?.filename,c=e[r];if(s&&c){n[s]=c,Ln[r]=[s,c];break}}}return n}),{})),Fn}(e);t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{t.filename&&(t.debug_id=r[t.filename])}))}))}(a,t.stackParser);const l=function(t,n){if(!n)return t;const e=t?t.clone():new $t;return e.update(n),e}(o,r.captureContext);r.mechanism&&ft(a,r.mechanism);const d=i?i.getEventProcessors():[],h=At().getScopeData();if(s){qn(h,s.getScopeData())}if(l){qn(h,l.getScopeData())}const p=[...r.attachments||[],...h.attachments];p.length&&(r.attachments=p),Bn(a,h);return Pn([...d,...h.eventProcessors],a,r).then((t=>(t&&function(t){const n={};if(t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)}))})),0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const e=t.debug_meta.images;Object.entries(n).forEach((([t,n])=>{e.push({type:"sourcemap",code_file:t,debug_id:n})}))}(t),"number"==typeof c&&c>0?function(t,n,e){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:$n(t.data,n,e)}})))},...t.user&&{user:$n(t.user,n,e)},...t.contexts&&{contexts:$n(t.contexts,n,e)},...t.extra&&{extra:$n(t.extra,n,e)}};t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=$n(t.contexts.trace.data,n,e)));t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:$n(t.data,n,e)}}))));t.contexts?.flags&&r.contexts&&(r.contexts.flags=$n(t.contexts.flags,3,e));return r}(t,c,u):t)))}function zn(t){if(t)return function(t){return t instanceof $t||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>Gn.includes(t)))}(t)?{captureContext:t}:t}const Gn=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function captureException(t,n){return Rt().captureException(t,zn(n))}function Jn(t,n){return Rt().captureEvent(t,n)}function Xn(){return Ct().lastEventId()}function Yn(t){const e=Ct(),r=Rt(),{userAgent:o}=n.navigator||{},i=yt({user:r.getUser()||e.getUser(),...o&&{userAgent:o},...t}),s=e.getSession();return"ok"===s?.status&>(s,{status:"exited"}),Kn(),e.setSession(i),i}function Kn(){const t=Ct(),n=Rt().getSession()||t.getSession();n&&function(t,n){let e={};"ok"===t.status&&(e={status:"exited"}),gt(t,e)}(n),Vn(),t.setSession()}function Vn(){const t=Ct(),n=Mt(),e=t.getSession();e&&n&&n.captureSession(e)}function Zn(t=!1){t?Kn():Vn()}const Qn="7";function te(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function ne(t,n,e){return n||`${function(t){return`${te(t)}${t.projectId}/envelope/`}(t)}?${function(t,n){const e={sentry_version:Qn};return t.publicKey&&(e.sentry_key=t.publicKey),n&&(e.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(e).toString()}(t,e)}`}const ee=[];function re(t){const n=t.defaultIntegrations||[],e=t.integrations;let r;if(n.forEach((t=>{t.isDefaultInstance=!0})),Array.isArray(e))r=[...n,...e];else if("function"==typeof e){const t=e(n);r=Array.isArray(t)?t:[t]}else r=n;return function(t){const n={};return t.forEach((t=>{const{name:e}=t,r=n[e];r&&!r.isDefaultInstance&&t.isDefaultInstance||(n[e]=t)})),Object.values(n)}(r)}function oe(t,n){for(const e of n)e?.afterAllSetup&&e.afterAllSetup(t)}function ie(t,n,e){if(!e[n.name]){if(e[n.name]=n,-1===ee.indexOf(n.name)&&"function"==typeof n.setupOnce&&(n.setupOnce(),ee.push(n.name)),n.setup&&"function"==typeof n.setup&&n.setup(t),"function"==typeof n.preprocessEvent){const e=n.preprocessEvent.bind(n);t.on("preprocessEvent",((n,r)=>e(n,r,t)))}if("function"==typeof n.processEvent){const e=n.processEvent.bind(n),r=Object.assign(((n,r)=>e(n,r,t)),{id:n.name});t.addEventProcessor(r)}}}const se=Symbol.for("SentryInternalError"),ce=Symbol.for("SentryDoNotSendEventError");function ue(t){return{message:t,[se]:!0}}function ae(t){return{message:t,[ce]:!0}}class fe{constructor(t){if(this.W=t,this._integrations={},this.G=0,this.J={},this.X={},this.v=[],t.dsn&&(this.Y=Sn(t.dsn)),this.Y){const n=ne(this.Y,t.tunnel,t._metadata?t._metadata.sdk:void 0);this.K=t.transport({tunnel:this.W.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,e){const r=st();if(lt(t))return r;const o={event_id:r,...n};return this.V(this.eventFromException(t,o).then((t=>this.Z(t,o,e)))),o.event_id}captureMessage(t,n,e,r){const o={event_id:st(),...e},i=P(t)?t:String(t),s=L(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this.V(s.then((t=>this.Z(t,o,r)))),o.event_id}captureEvent(t,n,e){const r=st();if(n?.originalException&<(n.originalException))return r;const o={event_id:r,...n},i=t.sdkProcessingMetadata||{},s=i.capturedSpanScope,c=i.capturedSpanIsolationScope;return this.V(this.Z(t,o,s||e,c)),o.event_id}captureSession(t){this.sendSession(t),gt(t,{init:!1})}getDsn(){return this.Y}getOptions(){return this.W}getSdkMetadata(){return this.W._metadata}getTransport(){return this.K}flush(t){const n=this.K;return n?(this.emit("flush"),this.tt(t).then((e=>n.flush(t).then((t=>e&&t))))):ht(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.emit("close"),t)))}getEventProcessors(){return this.v}addEventProcessor(t){this.v.push(t)}init(){(this.nt()||this.W.integrations.some((({name:t})=>t.startsWith("Spotlight"))))&&this.et()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];ie(this,t,this._integrations),n||oe(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let e=Nn(t,this.Y,this.W._metadata,this.W.tunnel);for(const t of n.attachments||[])e=jn(e,Cn(t));const r=this.sendEnvelope(e);r&&r.then((n=>this.emit("afterSendEvent",t,n)),null)}sendSession(t){const{release:n,environment:e=yn}=this.W;if("aggregates"in t){const r=t.attrs||{};if(!r.release&&!n)return;r.release=r.release||n,r.environment=r.environment||e,t.attrs=r}else{if(!t.release&&!n)return;t.release=t.release||n,t.environment=t.environment||e}this.emit("beforeSendSession",t);const r=function(t,n,e,r){const o=Mn(e);return In({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&n&&{dsn:En(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this.Y,this.W._metadata,this.W.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,n,e=1){if(this.W.sendClientReports){const r=`${t}:${n}`;this.J[r]=(this.J[r]||0)+e}}on(t,n){const e=this.X[t]=this.X[t]||[];return e.push(n),()=>{const t=e.indexOf(n);t>-1&&e.splice(t,1)}}emit(t,...n){const e=this.X[t];e&&e.forEach((t=>t(...n)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this.nt()&&this.K?this.K.send(t).then(null,(t=>t)):ht({})}et(){const{integrations:t}=this.W;this._integrations=function(t,n){const e={};return n.forEach((n=>{n&&ie(t,n,e)})),e}(this,t),oe(this,t)}rt(t,n){let e="fatal"===n.level,r=!1;const o=n.exception?.values;if(o){r=!0;for(const t of o){const n=t.mechanism;if(!1===n?.handled){e=!0;break}}}const i="ok"===t.status;(i&&0===t.errors||i&&e)&&(gt(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)}),this.captureSession(t))}tt(t){return new mt((n=>{let e=0;const r=setInterval((()=>{0==this.G?(clearInterval(r),n(!0)):(e+=1,t&&e>=t&&(clearInterval(r),n(!1)))}),1)}))}nt(){return!1!==this.getOptions().enabled&&void 0!==this.K}ot(t,n,e,r){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i?.length&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||r.setLastEventId(t.event_id||n.event_id),Wn(o,t,n,e,this,r).then((t=>{if(null===t)return t;this.emit("postprocessEvent",t,n),t.contexts={trace:Nt(e),...t.contexts};const r=function(t,n){const e=n.getPropagationContext();return e.dsc||vn(e.traceId,t)}(this,e);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t}))}Z(t,n={},e=Rt(),r=Ct()){return this.it(t,n,e,r).then((t=>t.event_id),(t=>{}))}it(t,n,e,r){const o=this.getOptions(),{sampleRate:i}=o,s=de(t),c=le(t),u=t.type||"error",a=`before send for type \`${u}\``,f=void 0===i?void 0:Xt(i);if(c&&"number"==typeof f&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),pt(ae(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const l="replay_event"===u?"replay":u;return this.ot(t,n,e,r).then((t=>{if(null===t)throw this.recordDroppedEvent("event_processor",l),ae("An event processor returned `null`, will not send event.");if(n.data&&!0===n.data.__sentry__)return t;const e=function(t,n,e,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=n;let c=e;if(le(c)&&o)return o(c,r);if(de(c)){if(s){const t=s(function(t){const{trace_id:n,parent_span_id:e,span_id:r,status:o,origin:i,data:s,op:c}=t.contexts?.trace??{};return{data:s??{},description:t.transaction,op:c,parent_span_id:e,span_id:r??"",start_timestamp:t.start_timestamp??0,status:o,timestamp:t.timestamp,trace_id:n??"",origin:i,profile_id:s?.[Bt],exclusive_time:s?.[qt],measurements:t.measurements,is_segment:!0}}(c));if(t?c=_t(e,{type:"transaction",timestamp:(u=t).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[Bt]:u.profile_id},...u.exclusive_time&&{[qt]:u.exclusive_time}}}},measurements:u.measurements}):mn(),c.spans){const t=[];for(const n of c.spans){const e=s(n);e?t.push(e):(mn(),t.push(n))}c.spans=t}}if(i){if(c.spans){const t=c.spans.length;c.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(c,r)}}var u;return c}(0,o,t,n);return function(t,n){const e=`${n} must return \`null\` or a valid event.`;if(B(t))return t.then((t=>{if(!U(t)&&null!==t)throw ue(e);return t}),(t=>{throw ue(`${n} rejected with ${t}`)}));if(!U(t)&&null!==t)throw ue(e);return t}(e,a)})).then((o=>{if(null===o){if(this.recordDroppedEvent("before_send",l),s){const n=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",n)}throw ae(`${a} returned \`null\`, will not send event.`)}const i=e.getSession()||r.getSession();if(c&&i&&this.rt(i,o),s){const t=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const u=o.transaction_info;if(s&&u&&o.transaction!==t.transaction){const t="custom";o.transaction_info={...u,source:t}}return this.sendEvent(o,n),o})).then(null,(t=>{if((n=t)&&"object"==typeof n&&ce in n||function(t){return!!t&&"object"==typeof t&&se in t}(t))throw t;var n;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),ue(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}V(t){this.G++,t.then((t=>(this.G--,t)),(t=>(this.G--,t)))}st(){const t=this.J;return this.J={},Object.entries(t).map((([t,n])=>{const[e,r]=t.split(":");return{reason:e,category:r,quantity:n}}))}ct(){const t=this.st();if(0===t.length)return;if(!this.Y)return;const n=(e=t,In((r=this.W.tunnel&&En(this.Y))?{dsn:r}:{},[[{type:"client_report"},{timestamp:T(),discarded_events:e}]]));var e,r;this.sendEnvelope(n)}}function le(t){return void 0===t.type}function de(t){return"transaction"===t.type}function he(t){return[{type:"otel_log"},t]}const pe=new WeakMap;function me(t,n){const e=pe.get(t)??[];if(0===e.length)return;const r=t.getOptions(),o=function(t,n,e,r){const o={};return n?.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),e&&r&&(o.dsn=En(r)),In(o,t.map(he))}(e,r._metadata,r.tunnel,t.getDsn());e.length=0,t.emit("flushLogs"),t.sendEnvelope(o)}function ye(t){Rt().setClient(t)}const ge=Symbol.for("SentryBufferFullError");function ve(t){const n=[];function e(t){return n.splice(n.indexOf(t),1)[0]||Promise.resolve(void 0)}return{$:n,add:function(r){if(!(void 0===t||n.lengthe(o))).then(null,(()=>e(o).then(null,(()=>{})))),o},drain:function(t){return new mt(((e,r)=>{let o=n.length;if(!o)return e(!0);const i=setTimeout((()=>{t&&t>0&&e(!1)}),t);n.forEach((t=>{ht(t).then((()=>{--o||(clearTimeout(i),e(!0))}),r)}))}))}}}const be=6e4;function _e(t,{statusCode:n,headers:e},r=Date.now()){const o={...t},i=e?.["x-sentry-rate-limits"],s=e?.["retry-after"];if(i)for(const t of i.trim().split(",")){const[n,e,,,i]=t.split(":",5),s=parseInt(n,10),c=1e3*(isNaN(s)?60:s);if(e)for(const t of e.split(";"))"metric_bucket"===t&&i&&!i.split(";").includes("custom")||(o[t]=r+c);else o.all=r+c}else s?o.all=r+function(t,n=Date.now()){const e=parseInt(`${t}`,10);if(!isNaN(e))return 1e3*e;const r=Date.parse(`${t}`);return isNaN(r)?be:r-n}(s,r):429===n&&(o.all=r+6e4);return o}const Ee=64;function we(t,n,e=ve(t.bufferSize||Ee)){let r={};return{send:function(o){const i=[];if(Tn(o,((n,e)=>{const o=Dn(e);!function(t,n,e=Date.now()){return function(t,n){return t[n]||t.all||0}(t,n)>e}(r,o)?i.push(n):t.recordDroppedEvent("ratelimit_backoff",o)})),0===i.length)return ht({});const s=In(o[0],i),c=n=>{Tn(s,((e,r)=>{t.recordDroppedEvent(n,Dn(r))}))};return e.add((()=>n({body:Rn(s)}).then((t=>(r=_e(r,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t===ge)return c("queue_overflow"),ht({});throw t}))},flush:t=>e.drain(t)}}function Se(t){void 0===t.user?.ip_address&&(t.user={...t.user,ip_address:"{{auto}}"})}function $e(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}const xe=100;function ke(t,n){const e=Mt(),r=Ct();if(!e)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=xe}=e.getOptions();if(i<=0)return;const s={timestamp:T(),...t},c=o?u((()=>o(s,n))):s;null!==c&&(e.emit&&e.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,i))}let Ie;const je=new WeakMap,Te=()=>({name:"FunctionToString",setupOnce(){Ie=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=et(this),e=je.has(Mt())&&void 0!==n?n:this;return Ie.apply(e,t)}}catch{}},setup(t){je.set(t,!0)}}),Oe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Re=(t={})=>{let n;return{name:"EventFilters",setup(e){const r=e.getOptions();n=Ae(t,r)},processEvent(e,r,o){if(!n){const e=o.getOptions();n=Ae(t,e)}return function(t,n){if(t.type){if("transaction"===t.type&&function(t,n){if(!n?.length)return!1;const e=t.transaction;return!!e&&Z(e,n)}(t,n.ignoreTransactions))return!0}else{if(function(t,n){if(!n?.length)return!1;return function(t){const n=[];t.message&&n.push(t.message);try{const e=t.exception.values[t.exception.values.length-1];e?.value&&(n.push(e.value),e.type&&n.push(`${e.type}: ${e.value}`))}catch(t){}return n}(t).some((t=>Z(t,n)))}(t,n.ignoreErrors))return!0;if(function(t){if(!t.exception?.values?.length)return!1;return!t.message&&!t.exception.values.some((t=>t.stacktrace||t.type&&"Error"!==t.type||t.value))}(t))return!0;if(function(t,n){if(!n?.length)return!1;const e=De(t);return!!e&&Z(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n?.length)return!0;const e=De(t);return!e||Z(e,n)}(t,n.allowUrls))return!0}return!1}(e,n)?null:e}}},Ce=(t={})=>({...Re(t),name:"InboundFilters"});function Ae(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:Oe],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[]]}}function De(t){try{const n=[...t.exception?.values??[]].reverse().find((t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length)),e=n?.stacktrace?.frames;return e?function(t=[]){for(let n=t.length-1;n>=0;n--){const e=t[n];if(e&&""!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}(e):null}catch(t){return null}}function Me(t,n,e,r,o,i){if(!o.exception?.values||!i||!q(i.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=Ne(t,n,r,i.originalException,e,o.exception.values,s,0))}function Ne(t,n,e,r,o,i,s,c){if(i.length>=e+1)return i;let u=[...i];if(q(r[o],Error)){Pe(s,c);const i=t(n,r[o]),a=u.length;Le(i,o,a,c),u=Ne(t,n,e,r[o],o,[i,...u],i,a)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if(q(r,Error)){Pe(s,c);const a=t(n,r),f=u.length;Le(a,`errors[${i}]`,f,c),u=Ne(t,n,e,r,o,[a,...u],a,f)}})),u}function Pe(t,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:n}}function Le(t,n,e,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:n,exception_id:e,parent_id:r}}function Ue(){"console"in n&&s.forEach((function(t){t in n.console&&Q(n.console,t,(function(e){return c[t]=e,function(...e){S("console",{args:e,level:t});const r=c[t];r?.apply(n.console,e)}}))}))}function Fe(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Be=()=>{let t;return{name:"Dedupe",processEvent(n){if(n.type)return n;try{if(function(t,n){if(!n)return!1;if(function(t,n){const e=t.message,r=n.message;if(!e&&!r)return!1;if(e&&!r||!e&&r)return!1;if(e!==r)return!1;if(!He(t,n))return!1;if(!qe(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=We(n),r=We(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!He(t,n))return!1;if(!qe(t,n))return!1;return!0}(t,n))return!0;return!1}(n,t))return null}catch(t){}return t=n}}};function qe(t,n){let e=v(t),r=v(n);if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;if(r.length!==e.length)return!1;for(let t=0;t=400&&t<500?"warning":t>=500?"error":void 0}const Je=n;function Xe(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Ye(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in Je))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}())return!1;if(Xe(Je.fetch))return!0;let t=!1;const n=Je.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow?.fetch&&(t=Xe(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t}function Ke(t,e){const r="fetch";E(r,t),w(r,(()=>function(t,e=!1){if(e&&!Ye())return;Q(n,"fetch",(function(t){return function(...e){const r=new Error,{method:o,url:i}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[n,e]=t;return{url:Ze(n),method:Ve(e,"method")?String(e.method).toUpperCase():"GET"}}const n=t[0];return{url:Ze(n),method:Ve(n,"method")?String(n.method).toUpperCase():"GET"}}(e),s={args:e,fetchData:{method:o,url:i},startTimestamp:1e3*O(),virtualError:r,headers:Qe(e)};return S("fetch",{...s}),t.apply(n,e).then((async t=>(S("fetch",{...s,endTimestamp:1e3*O(),response:t}),t)),(t=>{if(S("fetch",{...s,endTimestamp:1e3*O(),error:t}),C(t)&&void 0===t.stack&&(t.stack=r.stack,tt(t,"framesToPop",1)),t instanceof TypeError&&("Failed to fetch"===t.message||"Load failed"===t.message||"NetworkError when attempting to fetch resource."===t.message))try{const n=new URL(s.fetchData.url);t.message=`${t.message} (${n.host})`}catch{}throw t}))}}))}(0,e)))}function Ve(t,n){return!!t&&"object"==typeof t&&!!t[n]}function Ze(t){return"string"==typeof t?t:t?Ve(t,"url")?t.url:t.toString?t.toString():"":""}function Qe(t){const[n,e]=t;try{if("object"==typeof e&&null!==e&&"headers"in e&&e.headers)return new Headers(e.headers);if(r=n,"undefined"!=typeof Request&&q(r,Request))return new Headers(n.headers)}catch{}var r}const tr=()=>{},nr=["attachTo","createForm","createWidget","remove"],er=Object.assign((t=>(u((()=>{console.warn("You are using feedbackIntegration() even though this bundle does not include feedback.")})),{name:"Feedback",...nr.reduce(((t,n)=>(t[n]=tr,t)),{})})),{_isShim:!0}),rr=["start","stop","flush"];const or=t=>(u((()=>{console.warn("You are using browserTracingIntegration() even though this bundle does not include tracing.")})),{name:"BrowserTracing"}),ir=n;let sr=0;function cr(){return sr>0}function ur(t,n={}){if(!function(t){return"function"==typeof t}(t))return t;try{const n=t.__sentry_wrapped__;if(n)return"function"==typeof n?n:t;if(et(t))return t}catch(n){return t}const sentryWrapped=function(...e){try{const r=e.map((t=>ur(t,n)));return t.apply(this,r)}catch(t){throw sr++,setTimeout((()=>{sr--})),Dt((r=>{r.addEventProcessor((t=>(n.mechanism&&(at(t,void 0),ft(t,n.mechanism)),t.extra={...t.extra,arguments:e},t))),captureException(t)})),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch{}nt(sentryWrapped,t),tt(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch{}return sentryWrapped}function ar(t,n){const e=dr(t,n),r={type:mr(n),value:yr(n)};return e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function fr(t,n,e,r){const o=Mt(),i=o?.getOptions().normalizeDepth,s=function(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];if(e instanceof Error)return e}return}(n),c={__serialized__:xn(n,i)};if(s)return{exception:{values:[ar(t,s)]},extra:c};const u={exception:{values:[{type:F(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:Er(n,{isUnhandledRejection:r})}]},extra:c};if(e){const n=dr(t,e);n.length&&(u.exception.values[0].stacktrace={frames:n})}return u}function lr(t,n){return{exception:{values:[ar(t,n)]}}}function dr(t,n){const e=n.stacktrace||n.stack||"",r=function(t){if(t&&hr.test(t.message))return 1;return 0}(n),o=function(t){if("number"==typeof t.framesToPop)return t.framesToPop;return 0}(n);try{return t(e,r,o)}catch(t){}return[]}const hr=/Minified React error #\d+;/i;function pr(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function mr(t){const n=t?.name;if(!n&&pr(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return n}function yr(t){const n=t?.message;return pr(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function gr(t,n,e,r){const o=br(t,n,e?.syntheticException||void 0,r);return ft(o),o.level="error",e?.event_id&&(o.event_id=e.event_id),ht(o)}function vr(t,n,e="info",r,o){const i=_r(t,n,r?.syntheticException||void 0,o);return i.level=e,r?.event_id&&(i.event_id=r.event_id),ht(i)}function br(t,n,e,r,o){let i;if(D(n)&&n.error){return lr(t,n.error)}if(M(n)||A(n,"DOMException")){const o=n;if("stack"in n)i=lr(t,n);else{const n=o.name||(M(o)?"DOMError":"DOMException"),s=o.message?`${n}: ${o.message}`:n;i=_r(t,s,e,r),at(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}if(C(n))return lr(t,n);if(U(n)||F(n)){return i=fr(t,n,e,o),ft(i,{synthetic:!0}),i}return i=_r(t,n,e,r),at(i,`${n}`),ft(i,{synthetic:!0}),i}function _r(t,n,e,r){const o={};if(r&&e){const r=dr(t,e);r.length&&(o.exception={values:[{value:n,stacktrace:{frames:r}}]}),ft(o,{synthetic:!0})}if(P(n)){const{__sentry_template_string__:t,__sentry_template_values__:e}=n;return o.logentry={message:t,params:e},o}return o.message=n,o}function Er(t,{isUnhandledRejection:n}){const e=function(t,n=40){const e=Object.keys(rt(t));e.sort();const r=e[0];if(!r)return"[object has no keys]";if(r.length>=n)return Y(r,n);for(let t=e.length;t>0;t--){const r=e.slice(0,t).join(", ");if(!(r.length>n))return t===e.length?r:Y(r,n)}return""}(t),r=n?"promise rejection":"exception";if(D(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(F(t)){return`Event \`${function(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}class wr extends fe{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t};!function(t,n,r=[n],o="npm"){const i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${n}`,packages:r.map((t=>({name:`${o}:@sentry/${t}`,version:e}))),version:e}),t._metadata=i}(n,"browser",["browser"],ir.SENTRY_SDK_SOURCE||"cdn"),super(n);const r=this,{sendDefaultPii:o,_experiments:i}=r.W,s=i?.enableLogs;n.sendClientReports&&ir.document&&ir.document.addEventListener("visibilitychange",(()=>{"hidden"===ir.document.visibilityState&&(this.ct(),s&&me(r))})),s&&(r.on("flush",(()=>{me(r)})),r.on("afterCaptureLog",(()=>{r.ut&&clearTimeout(r.ut),r.ut=setTimeout((()=>{me(r)}),5e3)}))),o&&(r.on("postprocessEvent",Se),r.on("beforeSendSession",$e))}eventFromException(t,n){return gr(this.W.stackParser,t,n,this.W.attachStacktrace)}eventFromMessage(t,n="info",e){return vr(this.W.stackParser,t,n,e,this.W.attachStacktrace)}ot(t,n,e,r){return t.platform=t.platform||"javascript",super.ot(t,n,e,r)}}const Sr=n,$r=1e3;let xr,kr,Ir,jr;function Tr(){if(!Sr.document)return;const t=S.bind(null,"dom"),n=Or(t,!0);Sr.document.addEventListener("click",n,!1),Sr.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((n=>{const e=Sr,r=e[n]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Q(r,"addEventListener",(function(n){return function(e,r,o){if("click"===e||"keypress"==e)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[e]=r[e]||{refCount:0};if(!i.handler){const r=Or(t);i.handler=r,n.call(this,e,r,o)}i.refCount++}catch(t){}return n.call(this,e,r,o)}})),Q(r,"removeEventListener",(function(t){return function(n,e,r){if("click"===n||"keypress"==n)try{const e=this.__sentry_instrumentation_handlers__||{},o=e[n];o&&(o.refCount--,o.refCount<=0&&(t.call(this,n,o.handler,r),o.handler=void 0,delete e[n]),0===Object.keys(e).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,e,r)}})))}))}function Or(t,n=!1){return e=>{if(!e||e._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(e);if(function(t,n){return"keypress"===t&&(!n?.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable)}(e.type,r))return;tt(e,"_sentryCaptured",!0),r&&!r._sentryId&&tt(r,"_sentryId",st());const o="keypress"===e.type?"input":e.type;if(!function(t){if(t.type!==kr)return!1;try{if(!t.target||t.target._sentryId!==Ir)return!1}catch(t){}return!0}(e)){t({event:e,name:o,global:n}),kr=e.type,Ir=r?r._sentryId:void 0}clearTimeout(xr),xr=Sr.setTimeout((()=>{Ir=void 0,kr=void 0}),$r)}}function Rr(t){const n="history";E(n,t),w(n,Cr)}function Cr(){function t(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const r=jr,o=String(e);if(jr=o,r===o)return t.apply(this,n);S("history",{from:r,to:o})}return t.apply(this,n)}}Sr.addEventListener("popstate",(()=>{const t=Sr.location.href,n=jr;if(jr=t,n===t)return;S("history",{from:n,to:t})})),"history"in Je&&Je.history&&(Q(Sr.history,"pushState",t),Q(Sr.history,"replaceState",t))}const Ar={};function Dr(t){Ar[t]=void 0}const Mr="__sentry_xhr_v3__";function Nr(){if(!Sr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,n,e){const r=new Error,o=1e3*O(),i=N(e[0])?e[0].toUpperCase():void 0,s=function(t){if(N(t))return t;try{return t.toString()}catch{}return}(e[1]);if(!i||!s)return t.apply(n,e);n[Mr]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const t=n[Mr];if(t&&4===n.readyState){try{t.status_code=n.status}catch(t){}S("xhr",{endTimestamp:1e3*O(),startTimestamp:o,xhr:n,virtualError:r})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply:(t,n,e)=>(c(),t.apply(n,e))}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(t,n,e){const[r,o]=e,i=n[Mr];return i&&N(r)&&N(o)&&(i.request_headers[r.toLowerCase()]=o),t.apply(n,e)}}),t.apply(n,e)}}),t.send=new Proxy(t.send,{apply(t,n,e){const r=n[Mr];if(!r)return t.apply(n,e);void 0!==e[0]&&(r.body=e[0]);return S("xhr",{startTimestamp:1e3*O(),xhr:n}),t.apply(n,e)}})}function Pr(t,n=function(t){const n=Ar[t];if(n)return n;let e=Sr[t];if(Xe(e))return Ar[t]=e.bind(Sr);const r=Sr.document;if(r&&"function"==typeof r.createElement)try{const n=r.createElement("iframe");n.hidden=!0,r.head.appendChild(n);const o=n.contentWindow;o?.[t]&&(e=o[t]),r.head.removeChild(n)}catch(t){}return e?Ar[t]=e.bind(Sr):e}("fetch")){let e=0,r=0;return we(t,(function(o){const i=o.body.length;e+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:e<=6e4&&r<15,...t.fetchOptions};if(!n)return Dr("fetch"),pt("No fetch implementation available");try{return n(t.url,s).then((t=>(e-=i,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return Dr("fetch"),e-=i,r--,pt(t)}}))}function Lr(t,n,e,r){const o={filename:t,function:""===n?l:n,in_app:!0};return void 0!==e&&(o.lineno=e),void 0!==r&&(o.colno=r),o}const Ur=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Fr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Br=/\((\S*)(?::(\d+))(?::(\d+))\)/,qr=[30,t=>{const n=Ur.exec(t);if(n){const[,t,e,r]=n;return Lr(t,l,+e,+r)}const e=Fr.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=Br.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=to(e[1]||l,e[2]);return Lr(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],Hr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Wr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,zr=[50,t=>{const n=Hr.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=Wr.exec(n[3]);t&&(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]="")}let t=n[3],e=n[1]||l;return[e,t]=to(e,t),Lr(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],Gr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Jr=[40,t=>{const n=Gr.exec(t);return n?Lr(n[2],n[1]||l,+n[3],n[4]?+n[4]:void 0):void 0}],Xr=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Yr=[10,t=>{const n=Xr.exec(t);return n?Lr(n[2],n[3]||l,+n[1]):void 0}],Kr=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Vr=[20,t=>{const n=Kr.exec(t);return n?Lr(n[5],n[3]||n[4]||l,+n[1],+n[2]):void 0}],Zr=[qr,zr],Qr=p(...Zr),to=(t,n)=>{const e=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return e||r?[-1!==t.indexOf("@")?t.split("@")[0]:l,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]};const no=1024,eo=(t={})=>{const n={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var e;n.console&&function(t){const n="console";E(n,t),w(n,Ue)}(function(t){return function(n){if(Mt()!==t)return;const e={category:"console",data:{arguments:n.args,logger:"console"},level:Fe(n.level),message:K(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;e.message=`Assertion failed: ${K(n.args.slice(1)," ")||"console.assert"}`,e.data.arguments=n.args.slice(1)}ke(e,{input:n.args,level:n.level})}}(t)),n.dom&&(e=function(t,n){return function(e){if(Mt()!==t)return;let r,o,i="object"==typeof n?n.serializeAttribute:void 0,s="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;s&&s>no&&(s=no),"string"==typeof i&&(i=[i]);try{const t=e.event,n=function(t){return!!t&&!!t.target}(t)?t.target:t;r=G(n,{keyAttrs:i,maxStringLength:s}),o=function(t){if(!W.HTMLElement)return null;let n=t;for(let t=0;t<5;t++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}(n)}catch(t){r=""}if(0===r.length)return;const c={category:`ui.${e.name}`,message:r};o&&(c.data={"ui.component_name":o}),ke(c,{event:e.event,name:e.name,global:e.global})}}(t,n.dom),E("dom",e),w("dom",Tr)),n.xhr&&function(t){E("xhr",t),w("xhr",Nr)}(function(t){return function(n){if(Mt()!==t)return;const{startTimestamp:e,endTimestamp:r}=n,o=n.xhr[Mr];if(!e||!r||!o)return;const{method:i,url:s,status_code:c,body:u}=o,a={method:i,url:s,status_code:c},f={xhr:n.xhr,input:u,startTimestamp:e,endTimestamp:r},l={category:"xhr",data:a,type:"http",level:Ge(c)};t.emit("beforeOutgoingRequestBreadcrumb",l,f),ke(l,f)}}(t)),n.fetch&&Ke(function(t){return function(n){if(Mt()!==t)return;const{startTimestamp:e,endTimestamp:r}=n;if(r&&(!n.fetchData.url.match(/sentry_key/)||"POST"!==n.fetchData.method))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:e,endTimestamp:r},s={category:"fetch",data:o,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",s,i),ke(s,i)}else{const o=n.response,i={...n.fetchData,status_code:o?.status},s={input:n.args,response:o,startTimestamp:e,endTimestamp:r},c={category:"fetch",data:i,type:"http",level:Ge(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,s),ke(c,s)}}}(t)),n.history&&Rr(function(t){return function(n){if(Mt()!==t)return;let e=n.from,r=n.to;const o=ze(ir.location.href);let i=e?ze(e):void 0;const s=ze(r);i?.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(e=i.relative),ke({category:"navigation",data:{from:e,to:r}})}}(t)),n.sentry&&t.on("beforeSendEvent",function(t){return function(n){Mt()===t&&ke({category:"sentry."+("transaction"===n.type?"transaction":"event"),event_id:n.event_id,level:n.level,message:ut(n)},{event:n})}}(t))}}};const ro=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],oo=(t={})=>{const n={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){n.setTimeout&&Q(ir,"setTimeout",io),n.setInterval&&Q(ir,"setInterval",io),n.requestAnimationFrame&&Q(ir,"requestAnimationFrame",so),n.XMLHttpRequest&&"XMLHttpRequest"in ir&&Q(XMLHttpRequest.prototype,"send",co);const t=n.eventTarget;if(t){(Array.isArray(t)?t:ro).forEach(uo)}}}};function io(t){return function(...n){const e=n[0];return n[0]=ur(e,{mechanism:{data:{function:g(t)},handled:!1,type:"instrument"}}),t.apply(this,n)}}function so(t){return function(n){return t.apply(this,[ur(n,{mechanism:{data:{function:"requestAnimationFrame",handler:g(t)},handled:!1,type:"instrument"}})])}}function co(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in e&&"function"==typeof e[t]&&Q(e,t,(function(n){const e={mechanism:{data:{function:t,handler:g(n)},handled:!1,type:"instrument"}},r=et(n);return r&&(e.mechanism.data.handler=g(r)),ur(n,e)}))})),t.apply(this,n)}}function uo(t){const n=ir,e=n[t]?.prototype;e?.hasOwnProperty?.("addEventListener")&&(Q(e,"addEventListener",(function(n){return function(e,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=ur(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:g(r),target:t},handled:!1,type:"instrument"}}))}catch{}return n.apply(this,[e,ur(r,{mechanism:{data:{function:"addEventListener",handler:g(r),target:t},handled:!1,type:"instrument"}}),o])}})),Q(e,"removeEventListener",(function(t){return function(n,e,r){try{const o=e.__sentry_wrapped__;o&&t.call(this,n,o,r)}catch(t){}return t.call(this,n,e,r)}})))}const ao=()=>({name:"BrowserSession",setupOnce(){void 0!==ir.document&&(Yn({ignoreDuration:!0}),Zn(),Rr((({from:t,to:n})=>{void 0!==t&&t!==n&&(Yn({ignoreDuration:!0}),Zn())})))}}),fo=(t={})=>{const n={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){n.onerror&&function(t){!function(t){const n="error";E(n,t),w(n,x)}((n=>{const{stackParser:e,attachStacktrace:r}=lo();if(Mt()!==t||cr())return;const{msg:o,url:i,line:s,column:c,error:u}=n,a=function(t,n,e,r){const o=t.exception=t.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},c=s.stacktrace=s.stacktrace||{},u=c.frames=c.frames||[],a=r,f=e,d=N(n)&&n.length>0?n:X();0===u.length&&u.push({colno:a,filename:d,function:l,in_app:!0,lineno:f});return t}(br(e,u||o,void 0,r,!1),i,s,c);a.level="error",Jn(a,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}))}(t),n.onunhandledrejection&&function(t){!function(t){const n="unhandledrejection";E(n,t),w(n,I)}((n=>{const{stackParser:e,attachStacktrace:r}=lo();if(Mt()!==t||cr())return;const o=function(t){if(L(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(n),i=L(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:br(e,o,void 0,r,!0);i.level="error",Jn(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t)}}};function lo(){const t=Mt();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const ho=()=>({name:"HttpContext",preprocessEvent(t){if(!ir.navigator&&!ir.location&&!ir.document)return;const n=t.request?.url||X(),{referrer:e}=ir.document||{},{userAgent:r}=ir.navigator||{},o={...t.request?.headers,...e&&{Referer:e},...r&&{"User-Agent":r}},i={...t.request,...n&&{url:n},headers:o};t.request=i}}),po=(t={})=>{const n=t.limit||5,e=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,o){Me(ar,o.getOptions().stackParser,e,n,t,r)}}};function mo(t){return[Ce(),Te(),oo(),eo(),fo(),po(),Be(),ho(),ao()]}function yo(t){const n={};for(const e of Object.getOwnPropertyNames(t)){const r=e;void 0!==t[r]&&(n[r]=t[r])}return n}const go={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},vo=ir;return t.BrowserClient=wr,t.SDK_VERSION=e,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=Ut,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=Ft,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=Lt,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=Pt,t.Scope=$t,t.WINDOW=ir,t.addBreadcrumb=ke,t.addEventProcessor=function(t){Ct().addEventProcessor(t)},t.addIntegration=function(t){const n=Mt();n&&n.addIntegration(t)},t.breadcrumbsIntegration=eo,t.browserApiErrorsIntegration=oo,t.browserTracingIntegration=or,t.captureEvent=Jn,t.captureException=captureException,t.captureFeedback=function(t,n={},e=Rt()){const{message:r,name:o,email:i,url:s,source:c,associatedEventId:u,tags:a}=t,f={contexts:{feedback:{contact_email:i,name:o,message:r,url:s,source:c,associated_event_id:u}},type:"feedback",level:"info",tags:a},l=e?.getClient()||Mt();return l&&l.emit("beforeSendFeedback",f,n),e.captureEvent(f,n)},t.captureMessage=function(t,n){const e="string"==typeof n?n:void 0,r="string"!=typeof n?{captureContext:n}:void 0;return Rt().captureMessage(t,e,r)},t.captureSession=Zn,t.chromeStackLineParser=qr,t.close=async function(t){const n=Mt();return n?n.close(t):Promise.resolve(!1)},t.continueTrace=(t,n)=>{const e=Ot(r());if(e.continueTrace)return e.continueTrace(t,n);const{sentryTrace:o,baggage:i}=t;return Dt((t=>{const e=en(o,i);return t.setPropagationContext(e),n()}))},t.createTransport=we,t.createUserFeedbackEnvelope=function(t,{metadata:n,tunnel:e,dsn:r}){const o={event_id:t.event_id,sent_at:(new Date).toISOString(),...n?.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!e&&!!r&&{dsn:En(r)}},i=function(t){return[{type:"user_report"},t]}(t);return In(o,[i])},t.dedupeIntegration=Be,t.defaultStackLineParsers=Zr,t.defaultStackParser=Qr,t.endSession=Kn,t.eventFiltersIntegration=Re,t.eventFromException=gr,t.eventFromMessage=vr,t.exceptionFromError=ar,t.feedbackAsyncIntegration=er,t.feedbackIntegration=er,t.flush=async function(t){const n=Mt();return n?n.flush(t):Promise.resolve(!1)},t.forceLoad=function(){},t.functionToStringIntegration=Te,t.geckoStackLineParser=zr,t.getClient=Mt,t.getCurrentScope=Rt,t.getDefaultIntegrations=mo,t.getGlobalScope=At,t.getIsolationScope=Ct,t.globalHandlersIntegration=fo,t.httpContextIntegration=ho,t.inboundFiltersIntegration=Ce,t.init=function(t={}){const n=function(t={}){return{defaultIntegrations:mo(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:ir.SENTRY_RELEASE?.id,sendClientReports:!0,...yo(t)}}(t);if(!n.skipBrowserExtensionCheck&&function(){const t=void 0!==ir.window&&ir;if(!t)return!1;const n=t[t.chrome?"chrome":"browser"],e=n?.runtime?.id,r=X()||"",o=!!e&&ir===ir.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((t=>r.startsWith(`${t}//`))),i=void 0!==t.nw;return!!e&&!o&&!i}())return;const e={...n,stackParser:(r=n.stackParser||Qr,Array.isArray(r)?p(...r):r),integrations:re(n),transport:n.transport||Pr};var r;return function(t,n){!0===n.debug&&u((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Rt().update(n.initialScope);const e=new t(n);return ye(e),e.init(),e}(wr,e)},t.isInitialized=function(){return!!Mt()},t.lastEventId=Xn,t.lazyLoadIntegration=async function(t,n){const r=go[t],o=vo.Sentry=vo.Sentry||{};if(!r)throw new Error(`Cannot lazy load integration: ${t}`);const i=o[t];if("function"==typeof i&&!("_isShim"in i))return i;const s=function(t){const n=Mt(),r=n?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${e}/${t}.min.js`,r).toString()}(r),c=ir.document.createElement("script");c.src=s,c.crossOrigin="anonymous",c.referrerPolicy="strict-origin",n&&c.setAttribute("nonce",n);const u=new Promise(((t,n)=>{c.addEventListener("load",(()=>t())),c.addEventListener("error",n)})),a=ir.document.currentScript,f=ir.document.body||ir.document.head||a?.parentElement;if(!f)throw new Error(`Could not find parent element to insert lazy-loaded ${t} script`);f.appendChild(c);try{await u}catch{throw new Error(`Error when loading integration: ${t}`)}const l=o[t];if("function"!=typeof l)throw new Error(`Could not load integration: ${t}`);return l},t.linkedErrorsIntegration=po,t.makeFetchTransport=Pr,t.onLoad=function(t){t()},t.opera10StackLineParser=Yr,t.opera11StackLineParser=Vr,t.parameterize=function(t,...n){const e=new String(String.raw(t,...n));return e.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),e.__sentry_template_values__=n,e},t.replayIntegration=function(t){return u((()=>{console.warn("You are using replayIntegration() even though this bundle does not include replay.")})),{name:"Replay",...rr.reduce(((t,n)=>(t[n]=tr,t)),{})}},t.setContext=function(t,n){Ct().setContext(t,n)},t.setCurrentClient=ye,t.setExtra=function(t,n){Ct().setExtra(t,n)},t.setExtras=function(t){Ct().setExtras(t)},t.setTag=function(t,n){Ct().setTag(t,n)},t.setTags=function(t){Ct().setTags(t)},t.setUser=function(t){Ct().setUser(t)},t.showReportDialog=function(t={}){if(!ir.document)return;const n=Rt(),e=n.getClient(),r=e?.getDsn();if(!r)return;if(n&&(t.user={...n.getUser(),...t.user}),!t.eventId){const n=Xn();n&&(t.eventId=n)}const o=ir.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=function(t,n){const e=Sn(t);if(!e)return"";const r=`${te(e)}embed/error-page/`;let o=`dsn=${En(e)}`;for(const t in n)if("dsn"!==t&&"onClose"!==t)if("user"===t){const t=n.user;if(!t)continue;t.name&&(o+=`&name=${encodeURIComponent(t.name)}`),t.email&&(o+=`&email=${encodeURIComponent(t.email)}`)}else o+=`&${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`;return`${r}?${o}`}(r,t),t.onLoad&&(o.onload=t.onLoad);const{onClose:i}=t;if(i){const t=n=>{if("__sentry_reportdialog_closed__"===n.data)try{i()}finally{ir.removeEventListener("message",t)}};ir.addEventListener("message",t)}const s=ir.document.head||ir.document.body;s&&s.appendChild(o)},t.spanToBaggageHeader=function(t){return Qt(bn(t))},t.spanToJSON=fn,t.spanToTraceHeader=function(t){const{traceId:n,spanId:e}=t.spanContext();return function(t=vt(),n=bt(),e){let r="";return void 0!==e&&(r=e?"-1":"-0"),`${t}-${n}${r}`}(n,e,ln(t))},t.startSession=Yn,t.suppressTracing=function(t){const n=Ot(r());return n.suppressTracing?n.suppressTracing(t):Dt((n=>(n.setSDKProcessingMetadata({__SENTRY_SUPPRESS_TRACING__:!0}),t())))},t.updateSpanName=function(t,n){t.updateName(n),t.setAttributes({[Pt]:"custom","sentry.custom_span_name":n})},t.winjsStackLineParser=Jr,t.withIsolationScope=function(...t){const n=Ot(r());if(2===t.length){const[e,r]=t;return e?n.withSetIsolationScope(e,r):n.withIsolationScope(r)}return n.withIsolationScope(t[0])},t.withScope=Dt,t}({}); //# sourceMappingURL=bundle.min.js.map